package com.appkubes.mall.admin.application.admin.admin.dao;

import com.appkubes.mall.core.dao.BaseMallAdminDao;
import com.appkubes.mall.core.entity.MallAdmin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @Author: Rongjie
 * @Date: 2020/1/12 17:36
 * @Description:
 */
@Mapper
@Repository
public interface AdminDao extends BaseMallAdminDao {

    @Select({"select * from mall_admin where app_key = #{appKey} and user_name = #{userName}"})
    MallAdmin selectByUserName(@Param("appKey") String appKey, @Param("userName") String userName);
}
